package com.xcx.dto;


import com.xcx.common.dto.base.BaseReq;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

@Getter
@Setter
public class QueryCollectUserReq extends BaseReq {

	private static final long serialVersionUID = 1234563278997543L;
    /**
     * 用户号
     */
    private String userNo;
    
    /**
     * 当前页
     */
	private Integer currentPage;

	/**
	 * 每页数
	 */
    private Integer pageSize;


    @Override
    public String validate() {
        String result = super.validate();
        if (StringUtils.isNotBlank(result)) {
            return result;
        }
        if (StringUtils.isBlank(userNo)) {
            return "用户号不能为空";
        }
        if (currentPage == null) {
            return "查询页不能为空";
        }
        return null;
    }
}
